package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:54
 * @Description: TODO
 */
public class RealTimeAttendance {
    @JsonProperty("class")
    private String classX;

    private Double attendance;

    @JsonProperty("class")
    public com.caipin.domain.web.RealTimeAttendance setClassX(String classX) {
        this.classX = classX;
        return this;
    }

    public com.caipin.domain.web.RealTimeAttendance setAttendance(Double attendance) {
        this.attendance = attendance;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.RealTimeAttendance))
            return false;
        com.caipin.domain.web.RealTimeAttendance other = (com.caipin.domain.web.RealTimeAttendance)o;
        if (!other.canEqual(this))
            return false;
        Object this$classX = getClassX(), other$classX = other.getClassX();
        if ((this$classX == null) ? (other$classX != null) : !this$classX.equals(other$classX))
            return false;
        Object this$attendance = getAttendance(), other$attendance = other.getAttendance();
        return !((this$attendance == null) ? (other$attendance != null) : !this$attendance.equals(other$attendance));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.RealTimeAttendance;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $classX = getClassX();
        result = result * 59 + (($classX == null) ? 43 : $classX.hashCode());
        Object $attendance = getAttendance();
        return result * 59 + (($attendance == null) ? 43 : $attendance.hashCode());
    }

    public String toString() {
        return "RealTimeAttendance(classX=" + getClassX() + ", attendance=" + getAttendance() + ")";
    }

    public RealTimeAttendance(String classX, Double attendance) {
        this.classX = classX;
        this.attendance = attendance;
    }

    public String getClassX() {
        return this.classX;
    }

    public Double getAttendance() {
        return this.attendance;
    }
}

